<h2><?= $this->translate("Order Overview") ?></h2>
<?php
    require_once('Zend/Currency.php');
    $currency = new Zend_Currency('cs_CZ');
?>
<table>
    <tr>
        <th><?= $this->translate("Product Name") ?>:</th>
        <th><?= $this->translate("Amount") ?>:</th>
        <th><?= $this->translate("Total Price") ?>:</th>
    </tr>
<?php foreach( $this->orderItems as $item ) { ?>
    <tr>
        <td><?= $this->escape($item->Product->translate("name")) ?></td>
        <td><?= $item->amount ?></td>
        <td><?= $currency->toCurrency($item->price) ?></td>     
    </tr>
<?php } ?>
    <tr>
        <td colspan="4"><?= $this->translate("Total Price") ?>: <span id="totalPrice"><?= $currency->toCurrency($this->totalPrice) ?></span></td>
    </tr>
</table>
<form action="<?= $this->url(array('controller' => 'orders', 'action' => 'create-order')) ?>" method="post">
    <div>
        <input type="submit" value="<?= $this->translate("Submit Order") ?>" />
    </div>
</form>
